package com.team.work.dao;


import com.team.work.entities.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User, Long> {
    //根据用户名和密码返回数据库的数据
    User findByUsernameAndPassword(String username,String password);
}
